package com.changpay.zywy.mvp.model


import com.changpay.zywy.base.BaseModel
import com.changpay.zywy.http.RetrofitHelper
import com.changpay.zywy.mvp.contract.TodayActContract
import com.changpay.zywy.bean.HttpResult
import com.changpay.zywy.bean.TodayInfoBean
import com.changpay.zywy.bean.TodayListBean
import io.reactivex.Observable

/**
 * Created by chenxz on 2018/5/27.
 */
class TodayActModel : BaseModel(), TodayActContract.Model {
    override fun getTodayInfo(map: MutableMap<String, String>): Observable<HttpResult<TodayInfoBean>> {
        return RetrofitHelper.service.get_today_info(map)
    }

    override fun getTodayList(map: MutableMap<String, String>): Observable<HttpResult<TodayListBean>> {
        return RetrofitHelper.service.get_today_list(map)
    }

}